import request from '@/utils/http'

const PATH = '/search'

export function search(data: any) {
	return request({
		url: PATH + '/commonquery',
		method: 'post',
		data
	})
}

export function autocompletion(data: any) {
	return request({
		url: PATH + '/autocompletion',
		method: 'post',
		data
	})
}

export function keywordshistory() {
	return request({
		url: PATH + '/keywordshistory',
		method: 'post'
	})
}

export function deletekeywordshistory(data: any) {
	return request({
		url: PATH + '/deletekeywordshistory',
		method: 'post',
		data
	})
}
